package cn.imvc.app.models;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.imvc.app.entities.TypeClass;
import cn.imvc.app.repositories.TypeClassRepository;

@Service
public class TypeClassModelImpl implements TypeClassModel {

	@Autowired
	private TypeClassRepository typeClassRepository;

	public List<TypeClass> findShowTypeClasses() {
		return typeClassRepository.findByIsShow((byte) 1);
	}
}